abstract class Car {
    protected String brand;
    protected double price;

    public Car(String brand, double price)
    {
        this.brand = brand;
        this.price = price;
    }

    @Override
    public String toString()
    {
        return "Car {" +
                "brand" + brand +
                "price" + price +
                "}";
    }

    public abstract String getInfo();
}
